﻿import Router from 'vue-router'
import Index from '@let/layer_letter/Index'
import Index_main from "@let/layer_letter/index_main"
//Letter
//import Wrap_certain_layer from '@let/layer_letter/wrap_certain_layer'
//import Certain_layer_input from "@let/layer_letter/Certain_layer_input"
//import Certain_layer from "@let/layer_letter/certain_layer"
import Wrap_login from "../layer_letter/login/wrap_login"
import Finish_msg from "../layer_letter/login/finish_msg"
//import Finisth_msg_2 from "../layer_letter/login/finish_msg_2"
//import Finisth_msg_3 from "../layer_letter/login/finish_msg_3"
//import Finisth_msg_1 from "../layer_letter/login/finish_msg_1"
//import Finisth_msg_2_2 from "../layer_letter/login/finish_msg_2_2"
const Finisth_msg_2 = r => require.ensure([], () => r(require('../layer_letter/login/finish_msg_2')))
const Finisth_msg_1 = r => require.ensure([], () => r(require('../layer_letter/login/finish_msg_1')))
const Finisth_msg_2_2 = r => require.ensure([], () => r(require('../layer_letter/login/finish_msg_2_2')))
//排信员也main
//import Letter_man from "../layer_letter/login/Letter_man"
import Letter_man_2 from "../layer_letter/login/Letter_man_2"

//leter Detail_Exchange
import Detail_Exchange from "../layer_letter/Detail_Exchange.vue"
////my_mess
//import My_mess from "../layer_letter/login/My_mess"
export default new Router({
  routes: [
    {
      path: '/',
      redirect:'/Wrap_login',
      meta: {
        //requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
      },
      name: 'Index',
      component: Index,
      },
    {
        path: "/Letter_man_2",
        component: Letter_man_2,
    },
    {
      path: "/Wrap_login",
      component: Wrap_login,
      redirect:"/Wrap_login/Finish_msg",
      children: [
          {
              path: "Finish_msg_1",
              component: Finisth_msg_1
          },
            {
              path:"Finish_msg",
              component: Finish_msg
             },
            {
                path:"Finisth_msg_2",
               component: Finisth_msg_2
            },
           
            {
                path: "Finisth_msg_f",
                component: Finisth_msg_2_2
            }
      ]
    }, {
        path: "/Detail_Exchange",
        component: Detail_Exchange

    }
  ]
})
